package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the RETURNDETAIL database table.
 * 
 */
@Entity
@NamedQuery(name="Returndetail.findAll", query="SELECT r FROM Returndetail r")
public class Returndetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="RETURNDETAIL_RDID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RETURNDETAIL_RDID_GENERATOR")
	@Column(name="RD_ID")
	private long rdId;

	@Column(name="RD_MONEY")
	private String rdMoney;

	@Column(name="RD_NUM")
	private BigDecimal rdNum;

	@Column(name="RD_REASON")
	private String rdReason;

	@Column(name="RD_REMARK")
	private String rdRemark;

	//bi-directional many-to-one association to Repro
	@ManyToOne
	@JoinColumn(name="RET_ID")
	private Repro repro;

	public Returndetail() {
	}

	public long getRdId() {
		return this.rdId;
	}

	public void setRdId(long rdId) {
		this.rdId = rdId;
	}

	public String getRdMoney() {
		return this.rdMoney;
	}

	public void setRdMoney(String rdMoney) {
		this.rdMoney = rdMoney;
	}

	public BigDecimal getRdNum() {
		return this.rdNum;
	}

	public void setRdNum(BigDecimal rdNum) {
		this.rdNum = rdNum;
	}

	public String getRdReason() {
		return this.rdReason;
	}

	public void setRdReason(String rdReason) {
		this.rdReason = rdReason;
	}

	public String getRdRemark() {
		return this.rdRemark;
	}

	public void setRdRemark(String rdRemark) {
		this.rdRemark = rdRemark;
	}

	public Repro getRepro() {
		return this.repro;
	}

	public void setRepro(Repro repro) {
		this.repro = repro;
	}

}